MarkLogic Server 11.0 Product Documentation
DELETE /manage/v2/query-rolesets/{id}

Summary

This resource endpoint deletes a given query roleset using the id passed in the URL.

Request Headers
Accept The expected MIME type of the request body. If the format parameter is present, it takes precedence over the Accept header.
Content-type The MIME type of the data in the request body. Depending upon the value of the format parameter or Accept header, one of application/xml, application/json, or text/html.
Response Headers
Content-type The MIME type of the data in the response body. Depending upon the value of the format parameter or Accept header, one of application/xml, application/json, or text/html.

Response

A successful call to the endpoint will return 204 (No Content), the server successfully processed the request and is not returning any content. A response code of 400 (Bad Request) indicates that the payload is malformed. A status code of 401 (Unauthorized) is returned if the user does not have the necessary privileges for this action.

Produces
application/json JSON Content
application/xml XML Content

Required Privileges

This operation requires one of the following:

Usage Notes

This resource endpoint deletes a given query roleset using the id passed in the URL.

Example

> curl -X DELETE --anyauth -u admin:admin 
            -H "Content-Type:application/xml"  http://localhost:8002/manage/v2/query-rolesets/
            

This deletes the given entry. The call does not return any content, beyond headers.

Powered by MarkLogic Server | Terms of Use | Privacy Policy